# -*- coding:utf-8 -*-

__all__ = ['ModelConfBase', '_nwp_project_cache']

# 模式的配置类型ModelConf应继承或模仿ModelConfBase的样式.
# ModelConf类型的实例对象为project

class ModelConfBase(object):
    conf_name = ''
    model_name = ''

    def __init__(self, name, project_info, *args, **kwargs):
        self.name = name

    def gen_pbs_script(self, case_info={}, script_fname=None, *args, **kwargs):
        """

        :param case_info:
        :param script_fname:
        :param args:
        :param kwargs:
        :return: script_fname (Assigned or generated)
        """
        return None

    def gen_check_script(self, case_info={}, script_fname=None, *args, **kwargs):
        return None

_nwp_project_cache = {}